package com.softwaredesign.springboot.service;

import com.softwaredesign.springboot.entity.Role;
import com.softwaredesign.springboot.mapper.RoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoleService {

    @Autowired
    private RoleMapper roleMapper;

    public int save(Role role) {
        return roleMapper.update(role);
    }
}
